﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Xfm.TagHelpers
{
    /// <summary>
    /// 菜单模型
    /// </summary>
    public class NavNode
    {
        public NavNode()
        {

        }
        public NavNode(string title, string link, string icon)
        {
            this.Title = title;
            this.Link = link;
            this.Icon = icon;
        }
        /// <summary>
        /// 预留，Id
        /// </summary>
        public string Id { get; set; }
        /// <summary>
        /// 显示文字
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// 链接地址
        /// </summary>
        public string Link { get; set; }
        /// <summary>
        /// 排序-
        /// </summary>
        public int Order { get; set; } = 10;
        /// <summary>
        /// icon样式
        /// </summary>
        public string Icon { get; set; } = "far fa-circle";
        /// <summary>
        /// 子级
        /// </summary>
        public IList<NavNode> Childs { get; set; }
    }
}
